<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <meta id="i18n_pagename" content="zs-common">
  <title>{:C('sitename')}-市场走势</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <link href="/ascss/mui/css/mui.min.css" rel="stylesheet" />
  <link href="/ascss/ek.css" rel="stylesheet" />
  <link href="/ascss/user.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">
  	.circle-color-25 > div::before { background-color: #ccc; }
  	.headerContent {border-left:0;padding-left: 5px;margin-top: 13px;}
  	.ek-yeb-top{border:0 !important}
  	.ek-yeb-tp{background:#33385e !important;font-size:14px;}
  	.ek-yeb-tp p{margin-bottom:0px;}
  	.ws-yeb-box{margin:20px !important;background-color: #33385e !important;}
  	.ws-yeb-box h3{color: #fff !important;text-align: center;}
  	.ws-yeb-zr{position: relative;border-bottom:0 !important;}
  	.ws-yeb-zr span{position: absolute;height: 35px !important;line-height: 35px !important;font-size: 16px;left: 2px;color: #fff !important;}
  	.ws-yeb-zr input{font-size: 15px !important;height: 35px !important;background: #2d3152; border: 0;color: #fff !important;padding-left: 25px;}
  	.ws-yeb-sybz{}
  	.ws-yeb-sybz>span{background:#2d3152 !important;border: 0 !important;border-radius: 5px;}
  	.ws-yeb-sybz p{margin-bottom:0}
  	.ws-yeb-sybz .c2{font-size:14px !important; color:#ff575c !important;}
  	.ws-yeb-sybz .c1{font-size:14px !important; color:#fff !important}
  	.ws-yeb-sybz .active{background:#1b1e31 !important}
  	.ws-yeb-sybz .active p{color:#fff !important;}
  	.ws-yeb-sybz .active .c1{background:#1b1e31 !important;}
  	.ws-yeb-zcbtn{border: 0 !important;background: #0da3ff !important; color: #fff !important;height: 40px !important;line-height: 29px !important;opacity: 1;}
  	.ws-yeb-zrbtn{border: 0 !important;background: #ff7614 !important; color: #fff !important;height: 40px !important;line-height: 29px !important;opacity: 1;}
  </style>
  
   <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body style="font-size: 12px;">

  <div id="app">
  	<header class="mui-bar mui-bar-nav top-status"> <div class="flex-start headerContent"><img src="/images/static/menu.png" height="16"><div class="logoText" data-language="common_sczs">市场走势</div></div></header>
   <div data-v-6c73bfdf="" class="">
   	
   	<div class="mui-content">
		<h1 style="font-size: 16px;text-align: center;">ETH/USD</h1>
		<div class="tubiao-1" style="height:300px;margin: 0 10px;">
			
			<!-- TradingView Widget BEGIN -->
			<div class="tradingview-widget-container">
			  <div id="tradingview_0d503"></div>
			  <div class="tradingview-widget-copyright"><a href="https://cn.tradingview.com/symbols/ETHUSD/?exchange=COINBASE" rel="noopener" target="_blank"></div>
			  
			</div>
			<!-- TradingView Widget END -->
			
			</a>
		</div>
		<h1 style="font-size: 16px;text-align: center;">KXUCD</h1>
		<div class="tubiao-2" id="tubiao2" style="width:100%;height:300px;"></div>

	</div>
   	
  
   	
   	
   	
    
<ul class="nav-bottom-box">
   <li><a href="/Home/Run/index">
     <div class="icon-home nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_dtdt">
      大厅动态
     </div></a></li>
   <li class="mui-active"><a href="/Home/User/zs">
     <div class="icon-lottery nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_sczs">
      市场走势
     </div></a></li>
   <!--<li><a href="/home/User/yuebao">-->
   <!--  <div class="icon-news nav-bottom-icon"></div>-->
   <!--  <div class="nav-bottom-box-label" data-language="common_tzlc">-->
   <!--   投资理财-->
   <!--  </div></a></li>-->
   <li><a href="/home/Fen/index">
     <div class="icon-news nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_cz">
      充值
     </div></a></li>
   <li><a href="/Home/User/kefu.html">
     <div class="icon-homeService nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_kf">
      客服
     </div></a></li>
   <li><a href="/Home/User/index">
     <div class="icon-contact nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_wd">
      我的
     </div></a></li>
  </ul>
	
	

    <br data-v-6c73bfdf="" />
    <br data-v-6c73bfdf="" />
    <br data-v-6c73bfdf="" />
   </div>
  </div>
<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/ascss/js/jquery.i18n.properties.js"></script>
<script src="/ascss/js/language.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>

<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="/ascss/js/echarts.min.js"></script>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
  <script type="text/javascript">
  new TradingView.widget(
  {
  "autosize": true,
  "symbol": "COINBASE:ETHUSD",
  "interval": "5",
  "timezone": "Etc/UTC",
  "theme": "dark",
  "style": "1",
  "locale": "zh_EN",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "hide_top_toolbar": true,
  "allow_symbol_change": true,
  "studies": [
    "Volume@tv-basicstudies"
  ],
  "container_id": "tradingview_0d503"
}
  );
  </script>
 	<script>
   		$(function(){
   			$(".ws-yeb-sybz span").click(function(){
   				$(".ws-yeb-sybz span").removeClass("active");
   				$(this).addClass("active");
   				
   				var price = $("#price").val();
			    var yebts = $(".ws-yeb-sybz .active").data("ts");
			    var yeblx = $(".ws-yeb-sybz .active").data("lx");
			    $("#yjsy").val(price * yebts * yeblx);
   			})
   			
   			$("#price").bind("input propertychange",function(event){
			    var price = $("#price").val();
			    var yebts = $(".ws-yeb-sybz .active").data("ts");
			    var yeblx = $(".ws-yeb-sybz .active").data("lx");
			      $("#yjsy").val(price * yebts * yeblx);
			});
			
   		})
   	</script>

<script type="text/javascript">

	function logout(){
		$.ajax({
			url:"/Home/Index/logout",
			type: 'post',

			success: function (data) {

				setTimeout('myrefresh()',500); //指定1秒刷新一次
			}
		})
	}



	function handleFiles(obj,id){
		file = document.getElementById("icon");
		console.log(file);
		var files = obj.files;
		img = new Image();
		if(window.URL){
			//File API
			img.src = window.URL.createObjectURL(files[0]); //创建一个object URL，并不是你的本地路径
			img.onload = function(e) {
				console.log(e);
				window.URL.revokeObjectURL(this.src); //图片加载后，释放object URL
			}
		}
		file.src=img.src;
		var fd = new FormData();//实例化一个表单
		xhr = new XMLHttpRequest();
		fd.append('file', files[0]);//追加图片元素
		$.ajax({
			url: "{:u('Home/user/avatarUpload')}",
			type: 'post',
			cache: false,
			data: fd,
			processData: false,
			contentType: false,
			dataType:"json",
			accept: {
				title: 'Images',
				extensions: 'gif,jpg,jpeg,bmp,png',
				mimeTypes: 'image/*'
			},
			success : function(data) {
				if(data.status==1){
					layer.msg(data.info, {icon: 1,shade:0.8});
					setTimeout('myrefresh()',1000); //指定1秒刷新一次
				}else{
					layer.msg(data.info,{icon: 2,shade:0.8});
				}
			}
		});
	}



	$('#zhuanrang').on('click', function () {
		layer.open({
			type: 1,
			title: '转让元宝',

			area: ['100%', '300px'],
			shadeClose: false,
			btn:["确认"],
			content: '<div class="chongzhi-box">\n' +
					'<br>\n' +
					'<p style="padding: 5px 15px;"><span>转账用户ID:</span><input name="userid" id="userid" type="number" style="margin-left: 15px;"/></p>' +
					'<p style="padding: 5px 15px;"><span> &nbsp;&nbsp;&nbsp;转账数量:</span><input name="money" id="money" type="number" style="margin-left: 15px;"/></p>' +
					'<p style="padding: 5px 15px;"><span> &nbsp;&nbsp;&nbsp;提现密码:</span><input name="pass" id="pass" type="password" style="margin-left: 15px;"/></p>' +
					'</div>',
			yes: function(index, layero){
				var userid = document.getElementById("userid").value;
				var money = document.getElementById("money").value;
				var pass=document.getElementById("pass").value;

				var data=  {userid:userid,money:money,pass:pass};

				$.ajax({
					url:"{:U('Home/User/transferPost')}",
					type: 'post',
					data:data,
					success: function (data) {
						console.log(data);
						if(data.status==1){
							layer.msg(data.info, {icon: 1,shade:0.8},function(){
								location.reload();
							});
						}else{
							layer.msg(data.info,{icon: 2,shade:0.8});
						}

					}
				})
			}
		});
	})



	$(function(){
		$('#LoginForm').ajaxForm({
			beforeSubmit: checkForm,
			success: complete,
			dataType: 'json'
		});
		function checkForm(){

		}
		function complete(data){
			if(data.status==1){
				$('.btn').attr('disabled','disabled');
				layer.msg(data.info, function(index){
					layer.close(index);
					window.location.href=data.url;
				});
			}else{
				layer.msg(data.info);
				$('#password').val('').focus();
				return false;
			}
		}
	});

	function myrefresh()
	{
		window.location.reload();
	}


</script>

<script type="text/javascript">
var dom = document.getElementById("tubiao2");
var myChart = echarts.init(dom);
var app = {};
option = null;
var data0 = {$data1};
var rawData = data0.reverse();
var rawData1 = [
      ['2000044','0','22','1','0','22','22','0','0','-'],
      ['2000043','0','15','1','0','15','15','0','0','-'],
      ['2000042','9','0','-1','0','9','9','0','0','-'],
      ['2000041','8','0','-1','0','8','8','0','0','-'],
      ['2000040','0','18','1','0','18','18','0','0','-'],
      ['2000039','0','20','1','0','20','20','0','0','-'],
      ['2000038','0','18','1','0','18','18','0','0','-'],
      ['2000037','0','27','1','0','27','27','0','0','-'],
      ['2000036','10','0','-1','0','10','10','0','0','-'],
      ['2000035','3','0','-1','0','3','3','0','0','-'],
      ['2000034','0','25','1','0','25','25','0','0','-'],
      ['2000033','1','0','-1','0','1','1','0','0','-'],
      ['2000032','0','0','-1','0','0','0','0','0','-'],
      ['2000031','0','18','1','0','18','18','0','0','-'],
      ['2000030','12','0','-1','0','12','12','0','0','-'],
      ['2000029','0','16','1','0','16','16','0','0','-'],
      ['2000028','0','20','1','0','20','20','0','0','-'],
      ['2000027','13','0','-1','0','13','13','0','0','-'],
      ['2000026','5','0','-1','0','5','5','0','0','-'],
      ['2000025','0','18','1','0','18','18','0','0','-'],
      ['2000024','13','0','-1','0','13','13','0','0','-'],
      ['2000023','0','16','1','0','16','16','0','0','-'],
      ['2000022','0','22','1','0','22','22','0','0','-'],
      ['2000021','0','15','1','0','15','15','0','0','-'],
      ['2000020','9','0','-1','0','9','9','0','0','-'],
      ['2000019','8','0','-1','0','8','8','0','0','-'],
      ['2000018','0','18','1','0','18','18','0','0','-'],
      ['2000017','0','20','1','0','20','20','0','0','-'],
      ['2000015','0','18','1','0','18','18','0','0','-'],
      ['2000015','0','27','1','0','27','27','0','0','-'],
      ['2000014','10','0','-1','0','10','10','0','0','-'],
      ['2000013','3','0','-1','0','3','3','0','0','-'],
      ['2000012','0','25','1','0','25','25','0','0','-'],
      ['2000011','1','0','-1','0','1','1','0','0','-'],
      ['2000010','0','0','-1','0','0','0','0','0','-'],
      ['2000009','0','18','1','0','18','18','0','0','-'],
      ['2000008','12','0','-1','0','12','12','0','0','-'],
      ['2000007','0','16','1','0','16','16','0','0','-'],
      ['2000006','0','20','1','0','20','20','0','0','-'],
      ['2000005','13','0','-1','0','13','13','0','0','-'],
      ['2000004','5','0','-1','0','5','5','0','0','-'],
      ['2000003','0','18','1','0','18','18','0','0','-'],
      ['2000002','13','0','-1','0','13','13','0','0','-'],
      ['2000001','0','16','1','0','16','16','0','0','-'],
    ].reverse();

function calculateMA(dayCount, data) {
    var result = [];
    for (var i = 0, len = data.length; i < len; i++) {
        if (i < dayCount) {
            result.push('-');
            continue;
        }
        var sum = 0;
        for (var j = 0; j < dayCount; j++) {
            sum += data[i - j][1];
        }
        result.push(sum / dayCount);
    }
    return result;
}


var dates = rawData.map(function (item) {
    return item[0];
});

var data = rawData.map(function (item) {
    return [+item[1], +item[2], +item[5], +item[6]];
});
var option = {
    backgroundColor: '#21202d',
    legend: {
        data: [''],
        inactiveColor: '#777',
        textStyle: {
            color: '#fff'
        }
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            animation: false,
            type: 'cross',
            lineStyle: {
                color: '#376df4',
                width: 2,
                opacity: 1
            }
        }
    },
    xAxis: {
        type: 'category',
        data: dates,
        axisLine: { lineStyle: { color: '#8392A5' } }
    },
    yAxis: {
        scale: true,
        axisLine: { lineStyle: { color: '#8392A5' } },
        splitLine: { show: false }
    },
    grid: {
        bottom: 80
    },
    dataZoom: [{
        textStyle: {
            color: '#8392A5'
        },
        handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
        handleSize: '80%',
        dataBackground: {
            areaStyle: {
                color: '#8392A5'
            },
            lineStyle: {
                opacity: 0.8,
                color: '#8392A5'
            }
        },
        handleStyle: {
            color: '#fff',
            shadowBlur: 3,
            shadowColor: 'rgba(0, 0, 0, 0.6)',
            shadowOffsetX: 2,
            shadowOffsetY: 2
        }
    }, {
        type: 'inside'
    }],
    animation: false,
    series: [
        {
            type: 'candlestick',
            name: '',
            data: data,
            dimensions: ['date', 'open', 'close', 'highest','lowest'],
            itemStyle: {
                color: '#FD1050',
                color0: '#0CF49B',
                borderColor: '#FD1050',
                borderColor0: '#0CF49B'
            }
        }
    ]
};;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
</script>
<script src="__PUBLIC__/Home/js/cls.js"></script>

 </body>
</html>